package com.shoe.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ShoeAftersaleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShoeAftersaleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAftersaleIdIsNull() {
            addCriterion("aftersale_id is null");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdIsNotNull() {
            addCriterion("aftersale_id is not null");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdEqualTo(Long value) {
            addCriterion("aftersale_id =", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdNotEqualTo(Long value) {
            addCriterion("aftersale_id <>", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdGreaterThan(Long value) {
            addCriterion("aftersale_id >", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("aftersale_id >=", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdLessThan(Long value) {
            addCriterion("aftersale_id <", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdLessThanOrEqualTo(Long value) {
            addCriterion("aftersale_id <=", value, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdIn(List<Long> values) {
            addCriterion("aftersale_id in", values, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdNotIn(List<Long> values) {
            addCriterion("aftersale_id not in", values, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdBetween(Long value1, Long value2) {
            addCriterion("aftersale_id between", value1, value2, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleIdNotBetween(Long value1, Long value2) {
            addCriterion("aftersale_id not between", value1, value2, "aftersaleId");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateIsNull() {
            addCriterion("aftersale_date is null");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateIsNotNull() {
            addCriterion("aftersale_date is not null");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateEqualTo(Date value) {
            addCriterion("aftersale_date =", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateNotEqualTo(Date value) {
            addCriterion("aftersale_date <>", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateGreaterThan(Date value) {
            addCriterion("aftersale_date >", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateGreaterThanOrEqualTo(Date value) {
            addCriterion("aftersale_date >=", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateLessThan(Date value) {
            addCriterion("aftersale_date <", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateLessThanOrEqualTo(Date value) {
            addCriterion("aftersale_date <=", value, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateIn(List<Date> values) {
            addCriterion("aftersale_date in", values, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateNotIn(List<Date> values) {
            addCriterion("aftersale_date not in", values, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateBetween(Date value1, Date value2) {
            addCriterion("aftersale_date between", value1, value2, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleDateNotBetween(Date value1, Date value2) {
            addCriterion("aftersale_date not between", value1, value2, "aftersaleDate");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdIsNull() {
            addCriterion("aftersale_order_id is null");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdIsNotNull() {
            addCriterion("aftersale_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdEqualTo(Long value) {
            addCriterion("aftersale_order_id =", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdNotEqualTo(Long value) {
            addCriterion("aftersale_order_id <>", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdGreaterThan(Long value) {
            addCriterion("aftersale_order_id >", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("aftersale_order_id >=", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdLessThan(Long value) {
            addCriterion("aftersale_order_id <", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("aftersale_order_id <=", value, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdIn(List<Long> values) {
            addCriterion("aftersale_order_id in", values, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdNotIn(List<Long> values) {
            addCriterion("aftersale_order_id not in", values, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdBetween(Long value1, Long value2) {
            addCriterion("aftersale_order_id between", value1, value2, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("aftersale_order_id not between", value1, value2, "aftersaleOrderId");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveIsNull() {
            addCriterion("aftersale_solve is null");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveIsNotNull() {
            addCriterion("aftersale_solve is not null");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveEqualTo(String value) {
            addCriterion("aftersale_solve =", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveNotEqualTo(String value) {
            addCriterion("aftersale_solve <>", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveGreaterThan(String value) {
            addCriterion("aftersale_solve >", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveGreaterThanOrEqualTo(String value) {
            addCriterion("aftersale_solve >=", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveLessThan(String value) {
            addCriterion("aftersale_solve <", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveLessThanOrEqualTo(String value) {
            addCriterion("aftersale_solve <=", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveLike(String value) {
            addCriterion("aftersale_solve like", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveNotLike(String value) {
            addCriterion("aftersale_solve not like", value, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveIn(List<String> values) {
            addCriterion("aftersale_solve in", values, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveNotIn(List<String> values) {
            addCriterion("aftersale_solve not in", values, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveBetween(String value1, String value2) {
            addCriterion("aftersale_solve between", value1, value2, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleSolveNotBetween(String value1, String value2) {
            addCriterion("aftersale_solve not between", value1, value2, "aftersaleSolve");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiIsNull() {
            addCriterion("aftersale_requi is null");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiIsNotNull() {
            addCriterion("aftersale_requi is not null");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiEqualTo(String value) {
            addCriterion("aftersale_requi =", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiNotEqualTo(String value) {
            addCriterion("aftersale_requi <>", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiGreaterThan(String value) {
            addCriterion("aftersale_requi >", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiGreaterThanOrEqualTo(String value) {
            addCriterion("aftersale_requi >=", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiLessThan(String value) {
            addCriterion("aftersale_requi <", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiLessThanOrEqualTo(String value) {
            addCriterion("aftersale_requi <=", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiLike(String value) {
            addCriterion("aftersale_requi like", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiNotLike(String value) {
            addCriterion("aftersale_requi not like", value, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiIn(List<String> values) {
            addCriterion("aftersale_requi in", values, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiNotIn(List<String> values) {
            addCriterion("aftersale_requi not in", values, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiBetween(String value1, String value2) {
            addCriterion("aftersale_requi between", value1, value2, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andAftersaleRequiNotBetween(String value1, String value2) {
            addCriterion("aftersale_requi not between", value1, value2, "aftersaleRequi");
            return (Criteria) this;
        }

        public Criteria andReserve2IsNull() {
            addCriterion("reserve2 is null");
            return (Criteria) this;
        }

        public Criteria andReserve2IsNotNull() {
            addCriterion("reserve2 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve2EqualTo(String value) {
            addCriterion("reserve2 =", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotEqualTo(String value) {
            addCriterion("reserve2 <>", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2GreaterThan(String value) {
            addCriterion("reserve2 >", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2GreaterThanOrEqualTo(String value) {
            addCriterion("reserve2 >=", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2LessThan(String value) {
            addCriterion("reserve2 <", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2LessThanOrEqualTo(String value) {
            addCriterion("reserve2 <=", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2Like(String value) {
            addCriterion("reserve2 like", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotLike(String value) {
            addCriterion("reserve2 not like", value, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2In(List<String> values) {
            addCriterion("reserve2 in", values, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotIn(List<String> values) {
            addCriterion("reserve2 not in", values, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2Between(String value1, String value2) {
            addCriterion("reserve2 between", value1, value2, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve2NotBetween(String value1, String value2) {
            addCriterion("reserve2 not between", value1, value2, "reserve2");
            return (Criteria) this;
        }

        public Criteria andReserve3IsNull() {
            addCriterion("reserve3 is null");
            return (Criteria) this;
        }

        public Criteria andReserve3IsNotNull() {
            addCriterion("reserve3 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve3EqualTo(String value) {
            addCriterion("reserve3 =", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotEqualTo(String value) {
            addCriterion("reserve3 <>", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3GreaterThan(String value) {
            addCriterion("reserve3 >", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3GreaterThanOrEqualTo(String value) {
            addCriterion("reserve3 >=", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3LessThan(String value) {
            addCriterion("reserve3 <", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3LessThanOrEqualTo(String value) {
            addCriterion("reserve3 <=", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3Like(String value) {
            addCriterion("reserve3 like", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotLike(String value) {
            addCriterion("reserve3 not like", value, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3In(List<String> values) {
            addCriterion("reserve3 in", values, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotIn(List<String> values) {
            addCriterion("reserve3 not in", values, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3Between(String value1, String value2) {
            addCriterion("reserve3 between", value1, value2, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve3NotBetween(String value1, String value2) {
            addCriterion("reserve3 not between", value1, value2, "reserve3");
            return (Criteria) this;
        }

        public Criteria andReserve4IsNull() {
            addCriterion("reserve4 is null");
            return (Criteria) this;
        }

        public Criteria andReserve4IsNotNull() {
            addCriterion("reserve4 is not null");
            return (Criteria) this;
        }

        public Criteria andReserve4EqualTo(String value) {
            addCriterion("reserve4 =", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotEqualTo(String value) {
            addCriterion("reserve4 <>", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4GreaterThan(String value) {
            addCriterion("reserve4 >", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4GreaterThanOrEqualTo(String value) {
            addCriterion("reserve4 >=", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4LessThan(String value) {
            addCriterion("reserve4 <", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4LessThanOrEqualTo(String value) {
            addCriterion("reserve4 <=", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4Like(String value) {
            addCriterion("reserve4 like", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotLike(String value) {
            addCriterion("reserve4 not like", value, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4In(List<String> values) {
            addCriterion("reserve4 in", values, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotIn(List<String> values) {
            addCriterion("reserve4 not in", values, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4Between(String value1, String value2) {
            addCriterion("reserve4 between", value1, value2, "reserve4");
            return (Criteria) this;
        }

        public Criteria andReserve4NotBetween(String value1, String value2) {
            addCriterion("reserve4 not between", value1, value2, "reserve4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}